#!/bin/sh

CURRENTDIR=`pwd`
cd `dirname $0`


VERSION=0.1a

DESTDIR=procycle-$VERSION
FILES="artwork libpc procycle procycle.pro procycle.pri LICENSE"
EXCLUDES="libpc/doc libpc/Makefile procycle/Makefile"


rm -rf $DESTDIR*
mkdir $DESTDIR

for F in $FILES
do
	if [ -f $F ]
	then
		cp $F $DESTDIR
	elif [ -d $F ]
	then
		cp -r $F $DESTDIR
	fi
done

for E in $EXCLUDES
do
	rm -rf $DESTDIR/$E
done

echo "Adding to $DESTDIR.tar.bz2:"

tar -cvjf $DESTDIR.tar.bz2 $DESTDIR/

rm -rf $DESTDIR

cd $CURRENTDIR

